Optimal. Leaf size=120 \[ \frac {d^2 x^{1+m}}{b^2 (1+m)}+\frac {(b c-a d)^2 x^{1+m}}{2 a b^2 \left (a+b x^2\right )}+\frac {(b c-a d) (a d (3+m)+b (c-c m)) x^{1+m} \, _2F_1\left (1,\frac {1+m}{2};\frac {3+m}{2};-\frac {b x^2}{a}\right )}{2 a^2 b^2 (1+m)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.08, antiderivative size = 120, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.136, Rules used = {474, 470, 371}
\begin {gather*} \frac {x^{m+1} (b c-a d) (a d (m+3)+b (c-c m)) \, _2F_1\left (1,\frac {m+1}{2};\frac {m+3}{2};-\frac {b x^2}{a}\right )}{2 a^2 b^2 (m+1)}+\frac {x^{m+1} (b c-a d)^2}{2 a b^2 \left (a+b x^2\right )}+\frac {d^2 x^{m+1}}{b^2 (m+1)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 371
Rule 470
Rule 474
Rubi steps
\begin {align*} \int \frac {x^m \left (c+d x^2\right )^2}{\left (a+b x^2\right )^2} \, dx &=\frac {(b c-a d)^2 x^{1+m}}{2 a b^2 \left (a+b x^2\right )}-\frac {\int \frac {x^m \left (-2 b^2 c^2+(b c-a d)^2 (1+m)-2 a b d^2 x^2\right )}{a+b x^2} \, dx}{2 a b^2}\\ &=\frac {d^2 x^{1+m}}{b^2 (1+m)}+\frac {(b c-a d)^2 x^{1+m}}{2 a b^2 \left (a+b x^2\right )}--\frac {\left (-2 a^2 b d^2 (1+m)-b (1+m) \left (-2 b^2 c^2+(b c-a d)^2 (1+m)\right )\right ) \int \frac {x^m}{a+b x^2} \, dx}{2 a b^3 (1+m)}\\ &=\frac {d^2 x^{1+m}}{b^2 (1+m)}+\frac {(b c-a d)^2 x^{1+m}}{2 a b^2 \left (a+b x^2\right )}+\frac {(b c-a d) (b c (1-m)+a d (3+m)) x^{1+m} \, _2F_1\left (1,\frac {1+m}{2};\frac {3+m}{2};-\frac {b x^2}{a}\right )}{2 a^2 b^2 (1+m)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 9 vs. order 5 in
optimal.
time = 1.57, size = 895, normalized size = 7.46 \begin {gather*} \frac {x^{1+m} \left (a \left (105+71 m+15 m^2+m^3\right ) \left (c^2 \left (9-5 m+3 m^2+m^3\right )+2 c d (1+m)^3 x^2+d^2 (1+m)^3 x^4\right ) \Phi \left (-\frac {b x^2}{a},1,\frac {1+m}{2}\right )-2 a \left (105+71 m+15 m^2+m^3\right ) \left (c^2 (3+m)^3+2 c d \left (31+31 m+9 m^2+m^3\right ) x^2+d^2 (3+m)^3 x^4\right ) \Phi \left (-\frac {b x^2}{a},1,\frac {3+m}{2}\right )+13125 a c^2 \Phi \left (-\frac {b x^2}{a},1,\frac {5+m}{2}\right )+16750 a c^2 m \Phi \left (-\frac {b x^2}{a},1,\frac {5+m}{2}\right )+8775 a c^2 m^2 \Phi \left (-\frac {b x^2}{a},1,\frac {5+m}{2}\right )+2420 a c^2 m^3 \Phi \left (-\frac {b x^2}{a},1,\frac {5+m}{2}\right )+371 a c^2 m^4 \Phi \left (-\frac {b x^2}{a},1,\frac {5+m}{2}\right )+30 a c^2 m^5 \Phi \left (-\frac {b x^2}{a},1,\frac {5+m}{2}\right )+a c^2 m^6 \Phi \left (-\frac {b x^2}{a},1,\frac {5+m}{2}\right )+26250 a c d x^2 \Phi \left (-\frac {b x^2}{a},1,\frac {5+m}{2}\right )+33500 a c d m x^2 \Phi \left (-\frac {b x^2}{a},1,\frac {5+m}{2}\right )+17550 a c d m^2 x^2 \Phi \left (-\frac {b x^2}{a},1,\frac {5+m}{2}\right )+4840 a c d m^3 x^2 \Phi \left (-\frac {b x^2}{a},1,\frac {5+m}{2}\right )+742 a c d m^4 x^2 \Phi \left (-\frac {b x^2}{a},1,\frac {5+m}{2}\right )+60 a c d m^5 x^2 \Phi \left (-\frac {b x^2}{a},1,\frac {5+m}{2}\right )+2 a c d m^6 x^2 \Phi \left (-\frac {b x^2}{a},1,\frac {5+m}{2}\right )+10605 a d^2 x^4 \Phi \left (-\frac {b x^2}{a},1,\frac {5+m}{2}\right )+14206 a d^2 m x^4 \Phi \left (-\frac {b x^2}{a},1,\frac {5+m}{2}\right )+7847 a d^2 m^2 x^4 \Phi \left (-\frac {b x^2}{a},1,\frac {5+m}{2}\right )+2276 a d^2 m^3 x^4 \Phi \left (-\frac {b x^2}{a},1,\frac {5+m}{2}\right )+363 a d^2 m^4 x^4 \Phi \left (-\frac {b x^2}{a},1,\frac {5+m}{2}\right )+30 a d^2 m^5 x^4 \Phi \left (-\frac {b x^2}{a},1,\frac {5+m}{2}\right )+a d^2 m^6 x^4 \Phi \left (-\frac {b x^2}{a},1,\frac {5+m}{2}\right )-128 b c^2 x^2 \, _4F_3\left (2,2,2,\frac {3}{2}+\frac {m}{2};1,1,\frac {9}{2}+\frac {m}{2};-\frac {b x^2}{a}\right )-256 b c d x^4 \, _4F_3\left (2,2,2,\frac {3}{2}+\frac {m}{2};1,1,\frac {9}{2}+\frac {m}{2};-\frac {b x^2}{a}\right )-128 b d^2 x^6 \, _4F_3\left (2,2,2,\frac {3}{2}+\frac {m}{2};1,1,\frac {9}{2}+\frac {m}{2};-\frac {b x^2}{a}\right )\right )}{32 a^3 (3+m) (5+m) (7+m)} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.04, size = 0, normalized size = 0.00 \[\int \frac {x^{m} \left (d \,x^{2}+c \right )^{2}}{\left (b \,x^{2}+a \right )^{2}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {x^{m} \left (c + d x^{2}\right )^{2}}{\left (a + b x^{2}\right )^{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {x^m\,{\left (d\,x^2+c\right )}^2}{{\left (b\,x^2+a\right )}^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________